<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <button>按钮</button>
    <script>
        const but = document.querySelector('button')

        but.addEventListener('click', () => {
            console.log("我被点了一下")
        }, false)

        but.addEventListener('touchstart', () => {
            console.log('别摸我')
        }, false)

        but.addEventListener('touchend', () => {
            console.log('跑了')
        }, false)
    </script>
</body>

</html>